<?php require_once './span.php';?><!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> 
<title>Open Document Specification Spanner</title>
<style type="text/css">
body {
	/*font-size:80%;*/
	font-family:verdana,helvetica,arial,sans-serif;
}
</style> 
<script type="text/javascript"></script>
</head>
<body>
<header>
	<h1>Open Document</h1>
</header>
<div>
	<form>
		<select name="tag">
		<?php foreach ($defines as $name): ?>
			<option value="<?php echo $name; ?>"><?php echo $name; ?></option>
		<?php endforeach; ?>
		</select>
		<button type="submit">Span</button>
	</form>
</div>
<?php if (isset($tag)): ?>
<pre><?php echo $tag; ?></pre>
<pre><?php var_dump($debug);?></pre>
<?php endif; ?>
<footer><a href="http://zivperry.com">zivperry.com</a></footer> 
</body> 
</html> 